/**
 * 
 */
package org.ssh2Maven.service.systemService;

import javax.annotation.Resource;

import org.ssh2Maven.dao.systemDao.UserDao;
import org.ssh2Maven.model.systemModel.SystemUser;

/**
 * @author guangz
 *
 */
public class UserService
{
	private UserDao userDao;

	public UserDao getUserDao()
	{
		return userDao;
	}

	@Resource
	public void setUserDao(UserDao userDao)
	{
		this.userDao = userDao;
	}
	
	public SystemUser checkUser(String loginId, String password)
	{
		if( loginId == null || "".equals(loginId) || password == null || "".equals(password) )
			return null;
		
		return userDao.getUser(loginId, password);
	}
}
